package com.his.bean;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 批次库存表
 *
 * @TableName dzm_his_batches_of_inventory
 */
public class DzmHisBatchesOfInventory implements Serializable {
    /**
     * 批次库存ID
     */
    private String batchesOfInventoryId;

    /**
     * 诊所ID
     */
    private Integer companyId;

    /**
     * 供应商ID
     */
    private Integer supplierId;

    /**
     * 采购单编号
     */
    private Long batchesOfInventoryNumber;

    /**
     * 采购员ID
     */
    private Integer purchasingAgentId;

    /**
     * 采购总金额
     */
    private BigDecimal batchesOfInventoryTotalMoney;

    /**
     * 制单日期
     */
    private String batchesOfInventoryDate;

    /**
     * 审核标记；未审核：1，已审核：2
     */
    private Integer batchesOfInventoryStatus;

    /**
     * 审核人员ID
     */
    private Integer batchesOfInventoryVerifier;

    /**
     * 审核日期
     */
    private String batchesOfInventoryVerifierDate;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 更新时间
     */
    private String updateTime;


    //医院名字
    private String hospitalName;
    //供应商名字
    private String supplierName;
    //采购人名字
    private String userName;
    //审核人
    private String userName2;


    private static final long serialVersionUID = 1L;

    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName2() {
        return userName2;
    }

    public void setUserName2(String userName2) {
        this.userName2 = userName2;
    }

    /**
     * 批次库存ID
     */
    public String getBatchesOfInventoryId() {
        return batchesOfInventoryId;
    }

    /**
     * 批次库存ID
     */
    public void setBatchesOfInventoryId(String batchesOfInventoryId) {
        this.batchesOfInventoryId = batchesOfInventoryId;
    }

    /**
     * 诊所ID
     */
    public Integer getCompanyId() {
        return companyId;
    }

    /**
     * 诊所ID
     */
    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    /**
     * 供应商ID
     */
    public Integer getSupplierId() {
        return supplierId;
    }

    /**
     * 供应商ID
     */
    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    /**
     * 采购单编号
     */
    public Long getBatchesOfInventoryNumber() {
        return batchesOfInventoryNumber;
    }

    /**
     * 采购单编号
     */
    public void setBatchesOfInventoryNumber(Long batchesOfInventoryNumber) {
        this.batchesOfInventoryNumber = batchesOfInventoryNumber;
    }

    /**
     * 采购员ID
     */
    public Integer getPurchasingAgentId() {
        return purchasingAgentId;
    }

    /**
     * 采购员ID
     */
    public void setPurchasingAgentId(Integer purchasingAgentId) {
        this.purchasingAgentId = purchasingAgentId;
    }

    /**
     * 采购总金额
     */
    public BigDecimal getBatchesOfInventoryTotalMoney() {
        return batchesOfInventoryTotalMoney;
    }

    /**
     * 采购总金额
     */
    public void setBatchesOfInventoryTotalMoney(BigDecimal batchesOfInventoryTotalMoney) {
        this.batchesOfInventoryTotalMoney = batchesOfInventoryTotalMoney;
    }

    /**
     * 制单日期
     */
    public String getBatchesOfInventoryDate() {
        return batchesOfInventoryDate;
    }

    /**
     * 制单日期
     */
    public void setBatchesOfInventoryDate(String batchesOfInventoryDate) {
        this.batchesOfInventoryDate = batchesOfInventoryDate;
    }

    /**
     * 审核标记；未审核：1，已审核：2
     */
    public Integer getBatchesOfInventoryStatus() {
        return batchesOfInventoryStatus;
    }

    /**
     * 审核标记；未审核：1，已审核：2
     */
    public void setBatchesOfInventoryStatus(Integer batchesOfInventoryStatus) {
        this.batchesOfInventoryStatus = batchesOfInventoryStatus;
    }

    /**
     * 审核人员ID
     */
    public Integer getBatchesOfInventoryVerifier() {
        return batchesOfInventoryVerifier;
    }

    /**
     * 审核人员ID
     */
    public void setBatchesOfInventoryVerifier(Integer batchesOfInventoryVerifier) {
        this.batchesOfInventoryVerifier = batchesOfInventoryVerifier;
    }

    /**
     * 审核日期
     */
    public String getBatchesOfInventoryVerifierDate() {
        return batchesOfInventoryVerifierDate;
    }

    /**
     * 审核日期
     */
    public void setBatchesOfInventoryVerifierDate(String batchesOfInventoryVerifierDate) {
        this.batchesOfInventoryVerifierDate = batchesOfInventoryVerifierDate;
    }

    /**
     * 创建时间
     */
    public String getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新时间
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisBatchesOfInventory other = (DzmHisBatchesOfInventory) that;
        return (this.getBatchesOfInventoryId() == null ? other.getBatchesOfInventoryId() == null : this.getBatchesOfInventoryId().equals(other.getBatchesOfInventoryId()))
                && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
                && (this.getSupplierId() == null ? other.getSupplierId() == null : this.getSupplierId().equals(other.getSupplierId()))
                && (this.getBatchesOfInventoryNumber() == null ? other.getBatchesOfInventoryNumber() == null : this.getBatchesOfInventoryNumber().equals(other.getBatchesOfInventoryNumber()))
                && (this.getPurchasingAgentId() == null ? other.getPurchasingAgentId() == null : this.getPurchasingAgentId().equals(other.getPurchasingAgentId()))
                && (this.getBatchesOfInventoryTotalMoney() == null ? other.getBatchesOfInventoryTotalMoney() == null : this.getBatchesOfInventoryTotalMoney().equals(other.getBatchesOfInventoryTotalMoney()))
                && (this.getBatchesOfInventoryDate() == null ? other.getBatchesOfInventoryDate() == null : this.getBatchesOfInventoryDate().equals(other.getBatchesOfInventoryDate()))
                && (this.getBatchesOfInventoryStatus() == null ? other.getBatchesOfInventoryStatus() == null : this.getBatchesOfInventoryStatus().equals(other.getBatchesOfInventoryStatus()))
                && (this.getBatchesOfInventoryVerifier() == null ? other.getBatchesOfInventoryVerifier() == null : this.getBatchesOfInventoryVerifier().equals(other.getBatchesOfInventoryVerifier()))
                && (this.getBatchesOfInventoryVerifierDate() == null ? other.getBatchesOfInventoryVerifierDate() == null : this.getBatchesOfInventoryVerifierDate().equals(other.getBatchesOfInventoryVerifierDate()))
                && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
                && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBatchesOfInventoryId() == null) ? 0 : getBatchesOfInventoryId().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getSupplierId() == null) ? 0 : getSupplierId().hashCode());
        result = prime * result + ((getBatchesOfInventoryNumber() == null) ? 0 : getBatchesOfInventoryNumber().hashCode());
        result = prime * result + ((getPurchasingAgentId() == null) ? 0 : getPurchasingAgentId().hashCode());
        result = prime * result + ((getBatchesOfInventoryTotalMoney() == null) ? 0 : getBatchesOfInventoryTotalMoney().hashCode());
        result = prime * result + ((getBatchesOfInventoryDate() == null) ? 0 : getBatchesOfInventoryDate().hashCode());
        result = prime * result + ((getBatchesOfInventoryStatus() == null) ? 0 : getBatchesOfInventoryStatus().hashCode());
        result = prime * result + ((getBatchesOfInventoryVerifier() == null) ? 0 : getBatchesOfInventoryVerifier().hashCode());
        result = prime * result + ((getBatchesOfInventoryVerifierDate() == null) ? 0 : getBatchesOfInventoryVerifierDate().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", batchesOfInventoryId=").append(batchesOfInventoryId);
        sb.append(", companyId=").append(companyId);
        sb.append(", supplierId=").append(supplierId);
        sb.append(", batchesOfInventoryNumber=").append(batchesOfInventoryNumber);
        sb.append(", purchasingAgentId=").append(purchasingAgentId);
        sb.append(", batchesOfInventoryTotalMoney=").append(batchesOfInventoryTotalMoney);
        sb.append(", batchesOfInventoryDate=").append(batchesOfInventoryDate);
        sb.append(", batchesOfInventoryStatus=").append(batchesOfInventoryStatus);
        sb.append(", batchesOfInventoryVerifier=").append(batchesOfInventoryVerifier);
        sb.append(", batchesOfInventoryVerifierDate=").append(batchesOfInventoryVerifierDate);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}